﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace RoadTeam.Standard
{
    /// <summary>
    /// 表示一堆维修单
    /// </summary>
    public class CsMaintenance
    {
        [XmlElement(ElementName = "Item")]
        public Maintenance[] Item;
    }

    /// <summary>
    /// 表示一张维修单
    /// </summary>
    public class Maintenance
    {
        [XmlElement(ElementName = "MainInfo")]
        public Maintenance_MainInfo MainInfo;
        [XmlElement(ElementName = "DetailInfo")]
        public Maintenance_DetailInfo [] DetailInfo;
    }
    /// <summary>
    /// 表示单据的主要信息
    /// </summary>
    public class Maintenance_MainInfo
    {
        [XmlElement(ElementName = "MaintenanceIdentities")]
        public String MaintenanceIdentities;
        [XmlElement(ElementName = "MaintenanceCode")]
        public String MaintenanceCode;
        [XmlElement(ElementName = "UnitIdentifier")]
        public String UnitIdentifier;
        [XmlElement(ElementName = "MaintenanceAddress")]
        public String MaintenanceAddress;
        [XmlElement(ElementName = "MaintenanceDate")]
        public String MaintenanceDate;
        [XmlElement(ElementName = "MaintenanceType")]
        public String MaintenanceType;
        [XmlElement(ElementName = "MaintenanceContent")]
        public String MaintenanceContent;
        [XmlElement(ElementName = "MaintenanceContact")]
        public String MaintenanceContact;
        [XmlElement(ElementName = "MaintenanceContactPhone")]
        public String MaintenanceContactPhone;
        [XmlElement(ElementName = "MaintenanceCreater")]
        public String MaintenanceCreater;
        [XmlElement(ElementName = "OrganIdentifier")]
        public String OrganIdentifier;
        [XmlElement(ElementName = "MaintenanceRemark")]
        public String MaintenanceRemark;
    }
    /// <summary>
    /// 表示维修单的详细信息
    /// </summary>
    public class Maintenance_DetailInfo
    {
        [XmlElement(ElementName = "MainDetailIdentifier")]
        public String MainDetailIdentifier;
        [XmlElement(ElementName = "MainIdentifier")]
        public String MainIdentifier;
        [XmlElement(ElementName = "ProjectIdentitfier")]
        public String ProjectIdentitfier;
        [XmlElement(ElementName = "OrganIdentifier")]
        public String OrganIdentifier;
        [XmlElement(ElementName = "CreateDateTime")]
        public String CreateDateTime;
    }





}
